#!/bin/bash

echo "📦 安装 curl 支持"
echo "================================"

echo "检查系统 curl:"
if command -v curl &> /dev/null; then
    echo "✅ curl 已安装: $(curl --version | head -1)"
else
    echo "❌ curl 未安装"
    echo "请运行: pacman -S curl"
fi

echo ""
echo "检查开发库:"
if [ -f "/ucrt64/include/curl/curl.h" ]; then
    echo "✅ curl 开发库已安装"
else
    echo "❌ curl 开发库未安装"
    echo "请运行: pacman -S curl"
fi

echo ""
echo "完整构建指南:"
echo "1. 安装 curl: pacman -S curl"
echo "2. 重新构建: rm -rf bin .objs && ./build_simple_multi_ai.sh"
echo "3. 设置API密钥: export DEEPSEEK_API_KEY=您的密钥"
echo "4. 测试真实AI功能"
